using System.Collections.Generic;

namespace ClientTools.Client.Controls
{
    class ControlInfoComparer: IComparer<ControlInfo>
    {
        #region IComparer<ControlInfo> Member

        public int Compare(ControlInfo x, ControlInfo y)
        {
            if (x.Sort < y.Sort)
                return -1;
            return x.Sort > y.Sort ? 1 : 0;
        }

        #endregion
    }
}
